import request from '@/utils/request'

// 查询销售订单列表
export function listSell_order(query) {
  return request({
    url: '/mes/sell_order/list',
    method: 'get',
    params: query
  })
}

// 查询销售订单详细
export function getSell_order(id) {
  return request({
    url: '/mes/sell_order/' + id,
    method: 'get'
  })
}

// 新增销售订单
export function addSell_order(data) {
  return request({
    url: '/mes/sell_order',
    method: 'post',
    data: data
  })
}

// 修改销售订单
export function updateSell_order(data) {
  return request({
    url: '/mes/sell_order',
    method: 'put',
    data: data
  })
}

// 删除销售订单
export function delSell_order(id) {
  return request({
    url: '/mes/sell_order/' + id,
    method: 'delete'
  })
}
// 查询销售订单详细
export function getSell_orderPro(id) {
  return request({
    url: '/mes/sell_order/proInfo/' + id,
    method: 'get'
  })
}
